﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Addsp.ascx.cs" Inherits="Sanpham_Addsp" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>


<table width="700px" style="margin-left:20px;margin-top:-60px;">
<tr>
    <td colspan="3" align="center">
     <asp:Label ID="lb_themsp" runat="server" Text="Them san pham"></asp:Label>
    </td>
</tr>
<tr>
    <td colspan="3">
        <span style="font-size:12px;">Doanh nghiệp</span><br />
        <telerik:RadComboBox ID="RadComboBox1" runat="server" DataSourceID="sanpham_dn" 
            DataTextField="TenDN" DataValueField="TenDN" Skin="Hay">
        </telerik:RadComboBox>
        <asp:SqlDataSource ID="sanpham_dn" runat="server" 
            ConnectionString="<%$ ConnectionStrings:QLMTConnectionString %>" 
            SelectCommand="SELECT [TenDN] FROM [Doanhnghiep]"></asp:SqlDataSource>
    </td><br />
  </tr>
  <tr>
    <td>
        <span style="font-size:12px;">Tên sp</span><br />
        <asp:TextBox ID="txttensp" runat="server" ></asp:TextBox>
    </td><br />
    <td>
        <span style="font-size:12px;">Năm</span><br />
        <asp:TextBox ID="txtnam" runat="server" ></asp:TextBox>
    </td><br />
    <td>
        <span style="font-size:12px;">Tháng</span><br />
        <asp:TextBox ID="txtthang" runat="server" ></asp:TextBox>
    </td><br />
</tr>
<tr>
        
    <td>
        <span style="font-size:12px;">Công suất TK</span><br />
        <asp:TextBox ID="txtCSTK" runat="server" ></asp:TextBox>
    </td><br />
    <td>
        <span style="font-size:12px;">Công suất TT</span><br />
        <asp:TextBox ID="txtCSTT" runat="server" ></asp:TextBox>
    </td><br />
    <td>
        <span style="font-size:12px;">Đơn vị</span><br />
        <asp:TextBox ID="txtdvi" runat="server" ></asp:TextBox>
    </td><br />
</tr>
<tr style="height:60px">
    <td>
        <telerik:RadButton ID="Radbt_them" runat="server" Text="Thêm" Skin="Hay">
        </telerik:RadButton>
    </td>
    <td>
        <telerik:RadButton ID="Radbt_cancle" runat="server" Text="Cancle" Skin="Hay">
        </telerik:RadButton>
    </td>
</tr>


<tr>
<td colspan="3" style="height:70px;" valign="bottom">
--------------------------------------------------------------------------------------------------------------------------------------------------
</td>
</tr>
<tr>
    <td colspan="3">
        <telerik:RadGrid ID="RadGrid_sp" runat="server" AllowPaging="True" 
            AllowSorting="True" CellSpacing="0" DataSourceID="sqldata_spham" 
            GridLines="None" Skin="Telerik">
<HeaderContextMenu ></HeaderContextMenu>

<MasterTableView AutoGenerateColumns="False" DataKeyNames="masp" 
                DataSourceID="sqldata_spham">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

    <Columns>
        <telerik:GridTemplateColumn HeaderText="STT">                
                    <ItemTemplate>                    
                        <a href=""><%# Eval("masp") %></a>
                    </ItemTemplate>                
        </telerik:GridTemplateColumn>
        
        
        <telerik:GridTemplateColumn HeaderText="Mã DN">                
                    <ItemTemplate>                    
                        <a href=""><%# Eval("TenDN") %></a>
                    </ItemTemplate>                
        </telerik:GridTemplateColumn>
        
        <telerik:GridTemplateColumn HeaderText="Tensp">                
                    <ItemTemplate>                    
                        <a href=""><%# Eval("Tensp") %></a>
                    </ItemTemplate>                
        </telerik:GridTemplateColumn>
        
        <telerik:GridTemplateColumn HeaderText="Năm">                
                    <ItemTemplate>                    
                        <a href=""><%# Eval("Nam") %></a>
                    </ItemTemplate>                
        </telerik:GridTemplateColumn>
        
        <telerik:GridTemplateColumn HeaderText="Tháng">                
                    <ItemTemplate>                    
                        <a href=""><%# Eval("thang") %></a>
                    </ItemTemplate>                
        </telerik:GridTemplateColumn>
        
        <telerik:GridTemplateColumn HeaderText="Công suất TK">                
                    <ItemTemplate>                    
                        <a href=""><%# Eval("CSTK") %></a>
                    </ItemTemplate>                
        </telerik:GridTemplateColumn>
        
        <telerik:GridTemplateColumn HeaderText="Công suất TT">                
                    <ItemTemplate>                    
                        <a href=""><%# Eval("CSTT") %></a>
                    </ItemTemplate>                
        </telerik:GridTemplateColumn>
        
        <telerik:GridTemplateColumn HeaderText="Đơn vị">                
                    <ItemTemplate>                    
                        <a href=""><%# Eval("Donvi") %></a>
                    </ItemTemplate>                
        </telerik:GridTemplateColumn>
    </Columns>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

            <ClientSettings>
                <Selecting AllowRowSelect="True" />
            </ClientSettings>

<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
        <asp:SqlDataSource ID="sqldata_spham" runat="server" 
            ConnectionString="<%$ ConnectionStrings:QLMTConnectionString %>" 
            SelectCommand="SELECT [masp], [Madnghiep], [Tensp], [Nam], [Thang], [Donvi], [CSTT], [CSTK] FROM [Sanpham]">
        </asp:SqlDataSource>
    </td>
</tr>
</table>
